package Demo2;

public class Mian3 {
    public static void main(String[] args) {
        Runnable r=new Runnable() {
            @Override
            public void run() {
                System.out.println("hello thread");
            }
        };
        Thread t=new Thread(r);
        t.start();
        System.out.println("hello main");

    }

}
